# Maintainer: Adrien Smith <adrien@panissupraomnia.dev>
# Contributor: Gabriel Souza Franco <Z2FicmllbGZyYW5jb3NvdXphQGdtYWlsLmNvbQ==>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: dtw <dibble.at.thewrecker.dot.net>
# Contributor: Mathieu Gauthier <mathgl@freesurf.fr>
# Contributor: Pawel Bogur <jid:smeagol@uaznia.net>

pkgname=tcllib
pkgver=2.0
pkgrel=2
pkgdesc="Set of pure-Tcl extensions"
arch=('any')
url="http://core.tcl.tk/tcllib/"
license=('TCL')
depends=('bash' 'tcl')
source=("https://core.tcl-lang.org/tcllib/uv/tcllib-$pkgver.tar.gz")
sha256sums=('590263de0832ac801255501d003441a85fb180b8ba96265d50c4a9f92fde2534')

package(){
  cd "$srcdir"/tcllib-$pkgver
  ./installer.tcl \
    -pkg-path "$pkgdir"/usr/lib/tcllib \
	  -app-path "$pkgdir"/usr/bin \
	  -nroff-path "$pkgdir"/usr/share/man/mann \
	  -example-path "$pkgdir"/usr/share/doc/$pkgname \
    -no-html -no-wait  -no-gui
  install -Dm644 license.terms "$pkgdir"/usr/share/licenses/$pkgname/license.terms

  # To avoid conflict with blt
  mv "$pkgdir"/usr/share/man/mann/{,tcllib-}graph.n
}
